import style from '@/assets/home.module.scss';

import {} from '@/components';

export interface ProjectProps {
    children?: string | React.ReactElement | React.ReactElement[];
}

function Project({ children }: ProjectProps) {
    console.log(time().format('{YYYY} HH:mm:ss'), `home render`);

    const history = withRouter();
    return (
        <>
            <div
                className={`${style['place-item']}`}
                onClick={() => history.push(`/search/haha`)}>
                <div>
                    <img
                        src='http://qimgs.qunarzz.com/piao_qsight_provider_piao_qsight_web/0102p120008259zrk8DE9.jpg_710x360_c91e4d87.jpg'
                        alt=''
                    />
                </div>
                <div className={`${style['name']}`}>上海</div>
            </div>
        </>
    );
}

export default Project;
